import request from '@/common/js/request.js'

const di_userApi = {
  getUserAndDeptById: '/di_user/getUserAndDeptById', // 查询登录人和部门信息
  getSysUserByPhones: '/di_user/getSysUserByPhones', // 按照电话号码查询对应的系统用户
  getRelUserByMobile: '/di_user/getRelUserByMobile', // 按照电话号码查询赣政通可登录用户
}

export function getUserAndDeptById(userid, gztData) {
  return request({
    url: di_userApi.getUserAndDeptById,
    method: 'post',
	params: { userid },
	data: gztData
  })
}

/**
 * 按照电话号码查询对应的系统用户
 * @param {Object} params
 */
export function getSysUserByPhones(params) {
	return request({
		url: di_userApi.getSysUserByPhones,
		method: 'post',
		params: params
	})
}

/**
 * 按照电话号码查询赣政通可登录用户
 * @param {Object} params
 */
export function getRelUserByMobile(params) {
	return request({
		url: di_userApi.getRelUserByMobile,
		method: 'post',
		params: params
	})
}